package com.bdk.middle.goods.api.client;

import com.bdk.middle.common.result.ResultDO;
import com.bdk.middle.goods.api.domain.TagDO;
import com.bdk.middle.goods.api.query.TagQueryDO;
import org.springframework.web.bind.annotation.*;

public interface TagClientApi {

    /**
     * 添加Tag
     * @param domain TagDO
     * @return ResultDO
     */
    @RequestMapping(value="/tag_cliet_api/add.html", method = RequestMethod.POST)
    public @ResponseBody
    ResultDO add(@RequestBody TagDO domain);

    /**
     * 修改Tag信息
     * @param domain TagDO
     * @return ResultDO
     */
    @RequestMapping(value="/tag_cliet_api/edit.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO edit(@RequestBody TagDO domain);

    /**
     * 获取Tag详情
     * @param id TagID
     * @return ResultDO
     */
    @RequestMapping(value="/tag_cliet_api/get.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO get(@RequestParam("id") String id);

    /**
     * 删除Tag
     * @param id TagID
     * @param modifier 修改人商品属性名
     * @return ResultDO
     */
    @RequestMapping(value="/tag_cliet_api/remove.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO remove(@RequestParam("id") String id, @RequestParam("modifier") String modifier);

    /**
     * 查找Tag列表分页
     * @param domain 查询DO
     * @return ResultDO
     */
    @RequestMapping(value="/tag_cliet_api/find.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO find(@RequestBody TagQueryDO domain);
}
